for port in `seq $1 $2`; do \
  mkdir -p ./redis-${port}/conf \
  && REDIS_PORT=${port} REDIS_AUTH=$3 REDIS_IP=$4 envsubst < redis-cluster.tmpl > redis-${port}/conf/redis.conf \
  && mkdir -p redis-${port}/data;\
done